﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace GameJamKingdom
{
    class Background
    {
        Texture2D baseTex;

        public Background(Game1 cGame)
        {
            baseTex = cGame.Content.Load<Texture2D>("scaleTileV3");            
        }

        public void render(SpriteBatch spriteBatch, int cOffset)
        {
            //float ratio = 1 - (cOffset / Program.wHeight);
            //left block


            spriteBatch.Draw(baseTex, new Rectangle(-cOffset, 0, Program.wWidth, Program.wHeight), Color.White);
            spriteBatch.Draw(baseTex, new Rectangle(Program.wWidth - cOffset, 0, Program.wWidth, Program.wHeight), Color.White);
        }
    }
}
